import { Entity, Column, PrimaryGeneratedColumn, Double } from 'typeorm';

@Entity("metal_data")
export class MetalDataEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  date: Date;

  @Column()
  name: string;

  @Column()
  avgPrice: number;

  @Column()
  changeRate: number;
}